package com.itheima02;

/**
 * @author Xiao
 * @date 2021/7/11
 */
public class ObjectDemo2 {
    /**
     * API_Object   equals()
     */
    public static void main(String[] args) {
        Student stu1 = new Student("阿良",24);
        Student stu2 = new Student("阿良",24);
        //需求：比较内容是否相同
        System.out.println(stu1 == stu2);
        System.out.println(stu1.equals(stu2));
    }
}
